.class final Lcom/burstly/lib/service/AdHostProvider;
.super Lcom/burstly/lib/service/AbstractHostProvider;
.source "AdHostProvider.java"


# static fields
.field private static final FILE_NAME:Ljava/lang/String; = "ServerIPsList"


# direct methods
.method constructor <init>(Landroid/content/Context;)V
    .locals 2
    .parameter "context"

    .prologue
    .line 41
    const-string v0, "ServerIPsList"

    sget-object v1, Lcom/burstly/lib/constants/UriConstants;->AD_SERVER_URI:Ljava/lang/String;

    invoke-direct {p0, p1, v0, v1}, Lcom/burstly/lib/service/AbstractHostProvider;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 42
    return-void
.end method


# virtual methods
.method protected createLevelOneServers()Ljava/util/List;
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .prologue
    .line 46
    new-instance v0, Ljava/util/ArrayList;

    const/4 v1, 0x4

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V

    .line 47
    .local v0, levelOneServers:Ljava/util/List;,"Ljava/util/List<Ljava/lang/String;>;"
    sget-object v1, Lcom/burstly/lib/constants/UriConstants;->SECONDARY_HOST1:Ljava/lang/String;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 48
    sget-object v1, Lcom/burstly/lib/constants/UriConstants;->SECONDARY_HOST2:Ljava/lang/String;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 49
    sget-object v1, Lcom/burstly/lib/constants/UriConstants;->SECONDARY_HOST3:Ljava/lang/String;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 50
    return-object v0
.end method

.method protected getPrimaryHost()Ljava/lang/String;
    .locals 1

    .prologue
    .line 55
    invoke-static {}, Lcom/burstly/lib/constants/UriConstants;->getInstance()Lcom/burstly/lib/constants/UriConstants;

    move-result-object v0

    invoke-virtual {v0}, Lcom/burstly/lib/constants/UriConstants;->getPrimaryHost()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
